home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1600 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1013 b 

  1. Path: gate.net!pslfl2-38
  2. From: bhutto@gate.net (William Hutto)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Question!@#!
  5. Date: 15 Jan 1996 11:10:10 GMT
  6. Organization: CyberGate, Inc.
  7. Message-ID: <4ddcmi$11lo@news.gate.net>
  8. References: <4dcejq$2un@venus.senecac.on.ca>
  9. NNTP-Posting-Host: pslfl2-38.gate.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <4dcejq$2un@venus.senecac.on.ca>,
  13.    cweselak@learn.senecac.on.ca (Christian Weselak) wrote:
  14. >
  15. >I have a very Simple question.. well, it should be simple for 'alot' of 
  16. >you reading this newsgroup..
  17. >
  18. >anyways.
  19. >
  20. >I have created a program that asks THE users for his name, then writes it 
  21. >to a file, the file is called name.txt..
  22. >
  23. >Evertime this program is executed, the file name.txt get's overwritten.
  24. >
  25. >How can i keep this file, name.txt, so that i can eventually have a 
  26. >listing of all users who ran my program???
  27. >
  28. >Appreciated..
  29. >
  30.  
  31. FILE *namefile;
  32.  
  33.     if((namefile=fopen("name.txt","a"))==NULL) {
  34.         /*error*/
  35.     }
  36.  
  37. Bill
  38.  
  39. "Whatcha got on?...Your mind?"
  40.